home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20021006-20030409
/
000088_jhaines@benplan.com_Fri Nov 15 13:57:36 EST 2002.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
8KB
|
200 lines
Article: 13854 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
From: jhaines@benplan.com (John Haines)
Newsgroups: comp.protocols.kermit.misc
Subject: Kermit-FTP and SSL
Date: 15 Nov 2002 10:31:04 -0800
Organization: http://groups.google.com/
Lines: 182
Message-ID: <684be77d.0211151031.2ed9f7b5@posting.google.com>
NNTP-Posting-Host: 216.136.79.238
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1037385064 1540 127.0.0.1 (15 Nov 2002 18:31:04 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 15 Nov 2002 18:31:04 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13854
I saw a question on comp.protocols.kermit.misc in May about C-Kermit
on AIX 4.3.3 using SSL with WS_FTP Server. I'm trying to perform the
same thing and thought I would ask for some assistance. My goal is to
have my AIX box be an FTP client to an NT WS_FTP Server using SSL with
certificates. How do I setup Kermit (and OpenSSL) to send the signed
certificate from my AIX client?
If anyone can help it would be greatly appreciated. Thanks!
Below is my environment
AIX 4.3.3
OpenSSL 0.9.6g 9 Aug 2002
C-Kermit 8.0.206, 24 Oct 2002, for IBM AIX 4.3
Note: I could not find an AIX Kermit version with SSL, so I
downloaded the kermit source and compiled it
using gcc and make option aix43gcc+openssl
WS_FTP Server 7.6 running on Windows NT
I'm able to get Kermit and WS_FTP Server talking with SSL, but not
using certificates. As soon as I tell WS_FTP to only accept
connections with Certificates, everything falls apart. I have gotten
WS_FTP Server and a Windows 98 WS_FTP Pro client working with
certificates, but continue having problems with AIX.
On the WS_FTP Server, I created a certificate and self-signed it.
This worked between Server and Win98 client. On my AIX box I used the
following to create a certificate request.
openssl genrsa -des3 -rand ../random.file -out aixbox.key 2048
openssl req -new -config /usr/local/ssl/benplan.cnf -key aixbox.key
-out aixbox.csr
I then took the "aixbox.csr" and had my WS_FTP Server sign the
certificate request. The signed certificate was named
aixbox.signed.crt and placed on my AIX box.
Below is my Kermit script. If I remove the SET AUTH SSL VERIFY-FILE
statement and turn off certificate checking on the WS_FTP Server, I
can get a connection working. My goal is to be able to send a
certificate?
#!/usr/local/bin/krbmit +
set transfer display brief
SET AUTH TLS VERBOSE ON
SET AUTH TLS DEBUG ON
SET AUTH SSL VERBOSE ON
SET AUTH SSL DEBUG ON
SET AUTH SSL VERIFY-FILE sslkeys/aixbox.signed.crt
SET FTP AUTOAUTHENTICATION ON
SET FTP AUTHTYPE SSL TLS
SET FTP AUTOLOGIN OFF
SET FTP AUTOENCRYPTION ON
SET FTP COMMAND-PROTECTION-LEVEL PRIVATE
SET FTP DATA-PROTECTION-LEVEL PRIVATE
SET FTP VERBOSE ON
SET FTP DEBUG ON
ftp open U216JYFZB040.xxxxxxxx.com 21 /user:kuser /password:/passwd
if fail exit 1 Connection failed: \v(ftp_message)
if not \v(ftp_loggedin) exit 1 Login failed
ftp get /binary testfile.txt
if fail exit 1 ftp GET testfile.txt: \v(ftp_message)
ftp bye
exit
-----------------------------------------------------------------
Below is the output from running the script
-----------------------------------------------------------------
?Cannot set protection level to PRIVATE
?Cannot set protection level to PRIVATE
Connected to U216JYFZB040.xxxxxxxx.com.
220 U216JYFZB040.xxxxxxxxx.com X2 WS_FTP Server 3.1.3 (1300416223)
---> AUTH SSL
234 SSL enabled and waiting for negotiation
SSL accepted as authentication type
SSL DEBUG ACTIVE
=>START SSL/TLS connect on COMMAND
SSL_handshake:UNKWN before/connect initialization
SSL_connect:UNKWN before/connect initialization
SSL_connect:3WCH_A SSLv3 write client hello A
SSL_connect:3RSH_A SSLv3 read server hello A
ssl:client_verify_callback:depth=0 ok=0 err=18-self signed certificate
Certificate[0] subject=/C=US/ST=Texas/O=The Company/L=San
Antonio/OU=MIS/Em
ail=haines@xxxxxxxx.com/CN=U216JYFZB040.xxxxxxxx.com
Certificate[0] issuer =/C=US/ST=Texas/O=The Company/L=San
Antonio/OU=MIS/Em
ail=haines@xxxxxxxxx.com/CN=U216JYFZB040.xxxxxxxx.com
Warning: Server has a self-signed certificate
[0] subject=/C=US/ST=Texas/O=The Company/L=San
Antonio/OU=MIS/Email=haines
@xxxxxxxx.com/CN=U216JYFZB040.xxxxxxxx.com[0]
issuer=/C=US/ST=Texas/O=The Company
/L=San Antonio/OU=MIS/Email=haines@xxxxxxxx.com/CN=U216JYFZB040.xxxxxxxx.com
Continue? (Y/N) y
ssl:client_verify_callback => ok: 1
ssl:client_verify_callback:depth=0 ok=1 err=18-self signed certificate
ssl:client_verify_callback => ok: 1
SSL_connect:3RSC_A SSLv3 read server certificate A
SSL_connect:3RSKEA SSLv3 read server key exchange A
SSL_connect:3RCR_A SSLv3 read server certificate request A
SSL_connect:3RSD_A SSLv3 read server done A
SSL_write_alert
SSL_connect:3WCC_A SSLv3 write client certificate A
SSL_connect:3WCKEA SSLv3 write client key exchange A
SSL_connect:3WCCSA SSLv3 write change cipher spec A
SSL_connect:3WFINA SSLv3 write finished A
SSL_connect:3FLUSH SSLv3 flush data
SSL_read_alert
SSL_connect:failed in 3RFINA SSLv3 read finished A
ftp: SSL/TLS connect COMMAND error: error:14094410:SSL
routines:SSL3_READ_BYTES:
sslv3 alert handshake failure
=>DONE SSL/TLS connect on COMMAND
SSL authentication failed
Connected to U216JYFZB040.xxxxxxxx.com.
220 U216JYFZB040.xxxxxxxxx.com X2 WS_FTP Server 3.1.3 (1300419582)
---> AUTH TLS
234 SSL enabled and waiting for negotiation
TLS accepted as authentication type
SSL DEBUG ACTIVE
=>START SSL/TLS connect on COMMAND
SSL_handshake:UNKWN before/connect initialization
SSL_connect:UNKWN before/connect initialization
SSL_connect:3WCH_A SSLv3 write client hello A
SSL_connect:3RSH_A SSLv3 read server hello A
ssl:client_verify_callback:depth=0 ok=0 err=18-self signed certificate
Certificate[0] subject=/C=US/ST=Texas/O=The Company/L=San
Antonio/OU=MIS/Em
ail=haines@xxxxxxxx.com/CN=U216JYFZB040.xxxxxxxx.com
Certificate[0] issuer =/C=US/ST=Texas/O=The Company/L=San
Antonio/OU=MIS/Em
ail=haines@xxxxxxxxx.com/CN=U216JYFZB040.xxxxxxxxx.com
Warning: Server has a self-signed certificate
[0] subject=/C=US/ST=Texas/O=The Company/L=San
Antonio/OU=MIS/Email=haines
@xxxxxxxx.com/CN=U216JYFZB040.xxxxxxxx.com[0]
issuer=/C=US/ST=Texas/O=The Company
/L=San Antonio/OU=MIS/Email=jhaines@xxxxxxxxx.com/CN=U216JYFZB040.xxxxxxxx.com
Continue? (Y/N) y
ssl:client_verify_callback => ok: 1
ssl:client_verify_callback:depth=0 ok=1 err=18-self signed certificate
ssl:client_verify_callback => ok: 1
SSL_connect:3RSC_A SSLv3 read server certificate A
SSL_connect:3RSKEA SSLv3 read server key exchange A
SSL_connect:3RCR_A SSLv3 read server certificate request A
SSL_connect:3RSD_A SSLv3 read server done A
SSL_write_alert
SSL_connect:3WCC_A SSLv3 write client certificate A
SSL_connect:3WCKEA SSLv3 write client key exchange A
SSL_connect:3WCCSA SSLv3 write change cipher spec A
SSL_connect:3WFINA SSLv3 write finished A
SSL_connect:3FLUSH SSLv3 flush data
SSL_read_alert
SSL_connect:failed in 3RFINA SSLv3 read finished A
ftp: SSL/TLS connect COMMAND error: error:14094410:SSL
routines:SSL3_READ_BYTES:
sslv3 alert handshake failure
=>DONE SSL/TLS connect on COMMAND
TLS authentication failed
Connected to U216JYFZB040.xxxxxxxx.com.
220 U216JYFZB040.xxxxxxxx.com X2 WS_FTP Server 3.1.3 (1300421988)
Login failed
---> QUIT
221 Good-Bye
John Haines
Systems Engineer
Benefit Planners
(210) 487-7232 phone